class CulturalHeritage::CulturalHeritageAvatar < ActiveRecord::Base
  has_attached_file :avatar
  validates :title, :presence => {:message => "El Titulo es requerido"}
  validates :avatar_file_name, :presence => {:message => "La foto requerida"}
  default_scope where("deleted = 0")
  validates_attachment_content_type :avatar, :content_type => /image/ 
end
